var light_rpc = require('./my_rpc.js');

var port = 5556;
var rpc = new light_rpc({
	add: function(a, b, callback) {
		console.log('add callback');
		callback(a + b);
	},
	sub: function(a, b, callback) {
		console.log('sub callback');
		callback(a - b);
	},
});
rpc.listen(port);